const schedule = require("node-schedule");
import deleteValidCode from './deleteValidCode'
import updateLoginStatus from './updateLoginStatus'
//定時任務啟動

const shedule = {
  init(): void {
    schedule.scheduleJob("59 59 * * * *",deleteValidCode );//開發期間調整為1h
    schedule.scheduleJob("59 * * * * *",updateLoginStatus);
  },
};

export {shedule}